import Router from 'vue-router'
Vue.use(Router)

export default new Router({
	mode: 'history',
	base: '/baifang',
	routes: [
    {
      path: '/',
      redirect:'/index'
    },
    {
      path: '/index',
      component: () => import('@/view/index/index'),
      meta:{
        title:"首页"
      },
    },
    {
    	path: '/baifang',
      component: () => import('@/view/baifang/index'),
      redirect:'/baifang/list',
      children:[
        {
          path: '/baifang/xinjiankehu',
          component: () => import('@/view/baifang/xinjiankehu'),
          mete:{
            title:"新建拜访",
          },
        },
        {
          path: '/baifang/list',
          component: () => import('@/view/baifang/list'),
          mete:{
            title:"拜访列表",
          },
        },
        {
          path: '/baifang/xiangqing',
          component: () => import('@/view/baifang/xiangqing'),
          mete:{
            title:"拜访详情",
          },
        }
      ]
    },
    {
    	path: '/kehu',
      component: () => import('@/view/kehu/index'),
      redirect:'/kehu/list',
      children:[
        {
          path: '/kehu/xinjiankehu',
          component: () => import('@/view/kehu/xinjiankehu'),
          mete:{
            title:"新建客户",
          },
        },
        {
          path: '/kehu/list',
          component: () => import('@/view/kehu/list'),
          mete:{
            title:"客户列表",
          },
        },
        {
          path: '/kehu/xiangqing',
          component: () => import('@/view/kehu/xiangqing'),
          mete:{
            title:"客户详情",
          },
        }
      ]
    },
    {
    	path: '/lianxiren',
      component: () => import('@/view/lianxiren/index'),
      redirect:'/lianxiren/list',
      children:[
        {
          path: '/lianxiren/xinjiankehu',
          component: () => import('@/view/lianxiren/xinjiankehu'),
          mete:{
            title:"新建联系人",
          },
        },
        {
          path: '/lianxiren/list',
          component: () => import('@/view/lianxiren/list'),
          mete:{
            title:"联系人列表",
          },
        },
        {
          path: '/lianxiren/xiangqing',
          component: () => import('@/view/lianxiren/xiangqing'),
          mete:{
            title:"联系人详情",
          },
        }
      ]
    },
    {
    	path: '/gonghaikehu',
      component: () => import('@/view/gonghaikehu/index'),
      redirect:'/gonghaikehu/list',
      children:[
        {
          path: '/gonghaikehu/list',
          component: () => import('@/view/gonghaikehu/list'),
          mete:{
            title:"公海客户列表",
          },
        }
      ]
    },
    {
    	path: '/gongzuotai',
      component: () => import('@/view/gongzuotai/index'),
      redirect:'/gongzuotai/list',
      children:[
        {
          path: '/gongzuotai/list',
          component: () => import('@/view/gongzuotai/list'),
          mete:{
            title:"工作台",
          },
        }
      ]
    },
    {
    	path: '/wode',
      component: () => import('@/view/wode/index'),
      redirect:'/wode/list',
      children:[
        {
          path: '/wode/list',
          component: () => import('@/view/wode/list'),
          mete:{
            title:"我的",
          },
        }
      ]
    },
    {
    	path: '/shenpi',
      component: () => import('@/view/shenpi/index'),
      redirect:'/shenpi/list',
      children:[
        {
          path: '/shenpi/xinjiankehu',
          component: () => import('@/view/shenpi/xinjiankehu'),
          mete:{
            title:"新建公海客户",
          },
        },
        {
          path: '/shenpi/list',
          component: () => import('@/view/shenpi/list'),
          mete:{
            title:"公海客户列表",
          },
        }
      ]
    },
    {
    	path: '/xiaoxi',
      component: () => import('@/view/xiaoxi/index'),
      redirect:'/xiaoxi/list',
      children:[
        {
          path: '/xiaoxi/list',
          component: () => import('@/view/xiaoxi/list'),
          mete:{
            title:"消息列表",
          },
        },
        {
          path: '/xiaoxi/xiangqing',
          component: () => import('@/view/xiaoxi/xiangqing'),
          mete:{
            title:"消息详情",
          },
        }
      ]
    }
	]
})
